package com.example.demo.test;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

/**
 * Created by liujiahao on 2018/11/28.
 */
@Component
@Qualifier("dogone")
public class Dog implements Animals {
    @Override
    public void eat() {
        System.out.println("dog  eat");
    }
}
